// vite.config.ts
import { defineConfig } from "file:///D:/project/js/chat-room-code/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/project/js/chat-room-code/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import dts from "file:///D:/project/js/chat-room-code/node_modules/vite-plugin-dts/dist/index.mjs";
import legacy from "file:///D:/project/js/chat-room-code/node_modules/@vitejs/plugin-legacy/dist/index.mjs";
var vite_config_default = defineConfig({
  plugins: [
    legacy({
      targets: ["chrome >= 36", "safari >= 10", "ios >= 10", "android >= 6"],
      additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
      modernPolyfills: true
    }),
    vue(),
    dts({
      // 这里定义了需要生成d.ts文件的目录，如果有多个目录，可以使用数组
      include: ["src/packages/**/*.{vue,ts}"]
    })
  ],
  build: {
    // 打包后的文件输出目录
    outDir: "chat-room-npm",
    lib: {
      //指定组件编译入口文件
      entry: "./src/packages/index.ts",
      // 组件库名称
      name: "ViteVue3TsTestFjc",
      // 文件名称
      fileName: "index"
    },
    rollupOptions: {
      // 确保外部化处理那些你不想打包进库的依赖
      external: ["vue"],
      output: {
        exports: "named",
        // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
        globals: {
          vue: "Vue"
        }
      }
    }
  },
  server: {
    port: 5178
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxwcm9qZWN0XFxcXGpzXFxcXGNoYXQtcm9vbS1jb2RlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxwcm9qZWN0XFxcXGpzXFxcXGNoYXQtcm9vbS1jb2RlXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVj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